package com.pizza.model;

import java.io.Serializable;

import com.pizza.abstrait.AbstractArticle;

/**
 * Class Article, entite du modele.
 *
 */
public class Article extends AbstractArticle implements Serializable {

	public Article(int id, String nom, float prix, String description, String url_image, String type) {
		super();
		setId(id);
		setNom(nom);
		setPrix(prix);
		setDescription(description);
		setUrl_image(url_image);
		setType(type);
	}


	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if ((obj == null) || (obj.getClass() != this.getClass()))
			return false;
		Article a = (Article) obj;
		return (getId() == a.getId() && getNom().equals(a.getNom()) && getPrix() == a.getPrix() && getDescription()
				.equals(a.getDescription()));
	}
}
